﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
  
    class TaskNPC:NPC
    {

        
        private string deliverNPC;
        private string killNPC;
        private string collectNPC;
     

        public string DeliverNPC
        {
            get { return this.deliverNPC; }
            set { this.deliverNPC = value; }
        }
        public string KillNPC
        {
            get { return this.killNPC; }
            set { this.killNPC = value; }
        }
        public string CollectNPC
        {
            get { return this.collectNPC; }
            set { this.collectNPC = value; }
        }

        public TaskNPC(string name, Type type, string deliverNPC) : base(name,type)
        {
            
            this.deliverNPC=deliverNPC;
           
        }

       

        public override void Say()
        {
            Console.WriteLine("你能帮助我吗？NPC:{0},任务{1}", this.Name, this.deliverNPC) ;
        }

     
    }
}
